from django.shortcuts import render
from datetime import datetime


def greet(id):
    return "helloeee" + id


def index(request):
    context = {
        "gr": greet,
        "date": datetime.now(),
        "default": "",
        "default1": None,
        "list": [1, 2, 3, 4],
        "float1": 9.3323992323,
        "list1": [7, 8, 9, 10],
        "lower": "HELLO",
        "list2": [1, 23, 45, 66],
        "string1": "<script>alert('ee');</script>",
        "string2": "北京欢迎你",
        "string3": "<p>北京欢迎你</p>"
    }
    return render(request, "index.html", context=context)
